package com.example.demo.dao;

public class Creation {
    private String property;
    private Operation operation;
    private Object value;

    public Creation(String property, Operation operation, Object value) {
        this.property = property;
        this.operation = operation;
        this.value = value;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public Operation getOperation() {
        return operation;
    }

    public void setOperation(Operation operation) {
        this.operation = operation;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public enum Operation {
        eq("="), ne("!="), gt(">"), lt("<"), le("<="), ge(">="), in("in"), like("like"), left_like("like"), right_like("like");

        private String condition;

        private Operation(String condition){
            this.condition = condition;
        }

        @Override
        public String toString() {
            return condition;
        }
    }
}




